Skip to content

Conversation

@Zalathar
Copy link
Member

@Zalathar Zalathar commented Nov 4, 2025

While testing changes to bootstrap, I was annoyed by the fact that ./x test bootstrap spams a bunch of mysterious output to the console.

That output turns out to come from bootstrap_test.py, which runs unit tests for the Python parts of bootstrap. Those tests are (presumably) useful, but they don't add value when working on the Rust parts of bootstrap.

This PR therefore pulls them out into a separate test step that can be run with ./x test bootstrap-py.

When working on the Rust parts of bootstrap, it's unhelpful for
`./x test bootstrap` to also run Python unit tests.
@rustbot rustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Nov 4, 2025
@rustbot
Copy link
Collaborator

rustbot commented Nov 4, 2025

r? @clubby789

rustbot has assigned @clubby789.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@Kobzol
Copy link
Member

Kobzol commented Nov 4, 2025

r? @Kobzol

@rustbot rustbot assigned Kobzol and unassigned clubby789 Nov 4, 2025
Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I was also annoyed by them :)

View changes since this review

let host = builder.config.host_target;
let build_compiler = builder.compiler(0, host);
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
// Bootstrap tests might not be perfectly self-contained and can depend
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the bootstrap Python tests should be fine locally, but they are IMO not very useful anyway, so let's just run them only on CI.

@Kobzol
Copy link
Member

Kobzol commented Nov 4, 2025

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 4, 2025

📌 Commit 948bed2 has been approved by Kobzol

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 4, 2025
bors added a commit that referenced this pull request Nov 4, 2025
Rollup of 4 pull requests

Successful merges:

 - #144529 (Add `#[rustc_pass_indirectly_in_non_rustic_abis]`)
 - #147017 (FCW for repr(C) enums whose discriminant values do not fit into a c_int or c_uint)
 - #148459 (bootstrap: Split out a separate `./x test bootstrap-py` step)
 - #148468 (add logging to `fudge_inference_if_ok`)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 0719287 into rust-lang:master Nov 4, 2025
11 checks passed
@rustbot rustbot added this to the 1.93.0 milestone Nov 4, 2025
rust-timer added a commit that referenced this pull request Nov 4, 2025
Rollup merge of #148459 - Zalathar:bootstrap-py, r=Kobzol

bootstrap: Split out a separate `./x test bootstrap-py` step

While testing changes to bootstrap, I was annoyed by the fact that `./x test bootstrap` spams a bunch of mysterious output to the console.

That output turns out to come from `bootstrap_test.py`, which runs unit tests for the Python parts of bootstrap. Those tests are (presumably) useful, but they don't add value when working on the Rust parts of bootstrap.

This PR therefore pulls them out into a separate test step that can be run with `./x test bootstrap-py`.
@Zalathar Zalathar deleted the bootstrap-py branch November 4, 2025 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants